home *** CD-ROM | disk | FTP | other *** search
/ MacFormat España 22 / macformat_22.iso / Shareware / Programación / enteract-377 / enteract-377.sit / EnterAct Stuff / Documentation / EnterAct in brief / EnterAct in brief
Encoding:
Text File  |  1996-09-04  |  21.4 KB  |  494 lines  |  [TEXT/KEEN]

  1. *********EnterAct in brief (this is not the manual) *************
  2. ____
  3. Last revised: Sept 1996
  4. ____
  5. -----------
  6. Introduction
  7. -----------
  8.  
  9. EnterAct is a full C/C++/Java project-oriented editor, with
  10. additional code definition display capabilities. And then some.
  11.  
  12. Most of EnterAct's best features work with first-draft,
  13. uncompilabe code. As long as the delimiters balance and
  14. the key words are not too badly misspelled, EnterAct will
  15. provide instant definition and prototype display, a class
  16. browser, jumping to definitions, cross-referencing etc.
  17.  
  18. EnterAct typically needs 4-8 Meg for medium to large projects.
  19. (The default 7 Meg partition is recommended for routine work.)
  20. Sorry, that's the price of power. EnterAct is compatible with
  21. Virtual Memory and Ram Doubler™. And more SIMMs/DIMMs.
  22.  
  23. ---------------
  24. Necessary things
  25. ---------------
  26.  
  27. §    Installation
  28. Please see "Installing EnterAct 3/tt". Not much to do, just make
  29. a few aliases and drop them in your EnterAct Stuff folder.
  30.  
  31. §    Adding Java files
  32. Everything for Java files is the same as for C++ files.
  33. For best results, grab the source for the standard java libraries
  34. somewhere (eg CW9) and add it to your project.
  35.  
  36. §    Making a new project
  37. Select "New Project" (this same dialog appears when you start up
  38. EnterAct) and cancel the "Open Project"dialog. Give your project a
  39. name, and save it.
  40.  
  41. In the subsequent "Select <system> Folder..." dialog that appears,
  42. select the folder that holds your system <header> files. If you
  43. have placed EnterAct within a folder that also holds these files,
  44. you can just Cancel. If are leaving EnterAct in its own folder
  45. (the simplest approach) then select your main IDE folder as your
  46. <system> folder. You can drop an alias of your main IDE folder
  47. (eg "Metrowerks CodeWarrior alias") into your EnterAct folder,
  48. and then select the alias as your <system> folder. Please see
  49. "Installing EnterAct 3/tt" for details.
  50.  
  51. The easiest way to add files to your project is to drag files or
  52. folders or aliases onto your project window. When you do this,
  53. all files in subfolders will also be added.
  54.  
  55. Or add files with the "Add Files..." or "Add All in Folder..." commands:
  56. hold down the <Shift> key and the latter becomes "Add All in
  57. Subfolders...". With the "Add All" commands, use the button at the
  58. bottom of the dialog to add whole folders at once (including all
  59. files in subfolders if the <Shift> key was down).
  60.  
  61. Adding all toolbox headers is simplest if you make an alias for
  62. your favorite "Universal Headers" folder, and drag the alias onto
  63. your project window.
  64.  
  65. You can also add toolbox headers with the "Add Mac Headers"
  66. command. Note this adds the right headers only if your <system>
  67. folder contains exactly one copy of the toolbox headers. If you see
  68. a complaint about multiple versions of the toolbox headers, you
  69. can add the toolbox headers by dragging the actual header folder
  70. (or preferably an alias to it) onto your project window.
  71.  
  72. Add as many or as few files as you want, regardless of whether
  73. they make up a complete project. Neglect not non-source files
  74. (spec, design etc) which end up in the rightmost project window
  75. pane. Source files are in the left pane, headers in the middle. To
  76. force files with nonstandard extensions into particular panes, use
  77. "File Extensions...." to enter the selection and pick the pane.
  78.  
  79. Things work best if you include definitions for all the names in
  80. your source code, especially toolbox terms but also PowerPlant or
  81. TCL, ANSI headers, java library source etc. If you make aliases for
  82. these folders and place them in your EnterAct folder, you'll be able
  83. to make new projects easily.
  84.  
  85. NOTE if a folder's name is in parentheses, the files in it will not
  86. be added to your project. To exclude a folder such as "Old Source",
  87. change its name to "(Old Source)".
  88.  
  89. If you add more than one file with the same name, truncated full
  90. path names will appear to the right of the file name, to help you
  91. tell which file is which. (See "Building a project dictionary" just
  92. below to exclude files from being built into your dictionary).
  93.  
  94. The project window responds to many keys in standard ways.
  95. Go left and right across the three panes with the left and right
  96. arrow keys, <Command><down arrow> to go to the bottom of a
  97. pane etc. To type your way to a particular file, you can type
  98. the first part of the name or any distinctive part of the name
  99. (useful if you have a lot of files whose names all begin with the
  100. same prefix, eg to advance to "PROJECT7_Mouse.c" you could
  101. probably type just "mou").
  102.  
  103. You can open a file from your project window by double-clicking
  104. on it, or hitting <Return>, or use "Go to..." with the name selected.
  105. In all cases, the project window itself will go all the way to the back.
  106.  
  107. Please add this file to your project for handy reference (use "Add
  108. Front File"), and add the "EnterAct 3 Manual" as well - eventually,
  109. you'll want to browse through it.
  110.  
  111. §    Building a project dictionary
  112. To exclude a file from being built into your dictionary, hold down
  113. the <Command> key and click on its name in the project window.
  114. A dash '-' will appear to the left of its name, meaning your
  115. dictionary will be "minus" that file.
  116.  
  117. Select "Update Dictionary". If you run into a problem, see
  118. «EnterAct 3 Manual» 132.
  119. (click in the line above and select "Go to..." from the Search menu -
  120. if you've added the manual to your project, this will open the
  121. manual and take you to the line.)
  122.  
  123. Now and then (typically when lookup doesn't give expected
  124. results) issue an "Update Dictionary" to keep your
  125. dictionary current. Your dictionary tracks everything defined
  126. outside of function bodies, so if you add a member to a class
  127. or define a new method, your dictionary will be "out of date".
  128. On a 68040 machine running at 25 Mhz an incremental update
  129. takes about 6 secs, a nice little "mini-break".
  130.  
  131.  
  132. §    Looking up definitions
  133. The AutoLook window is EnterAct's reason for being, so please
  134. try it out!
  135.  
  136. For any sort of lookup to work, you must have a project with
  137. built dictionary open.
  138.  
  139. Select "AutoLook": when you type or click after or double-click
  140. on a C/C++ or Java name in any window, the AutoLook window
  141. will display its definition. This includes all names for structs,
  142. unions, enums, enum constants, functions, methods, classes, file
  143. or global scope variables, defines, and data members, basically
  144. everything that is defined outside of a function body.
  145.  
  146. The AutoLook window can also display definitions of local
  147. variables. For this to work, the file in question must be a
  148. source file (ie its name must end in .c or cp etc) and if
  149. you've just created a function you should save the file.
  150. Clicking after a local variable name will then produce a
  151. definition in the AutoLook window.
  152.  
  153. AutoLook is less accurate in non-source windows, but it still
  154. works.
  155.  
  156. As of v3.5, AutoLook provides fast extremely accurate lookup for
  157. data member and method names, even in complicated "reference
  158. chains" such as "mObject->SomeMethod().aMember[i].whatsIt"
  159. --just click after any name and the AutoLook window will show
  160. you what it is, or make very good guesses in the rare cases when
  161. the method's context doesn't provide enough scope resolution,
  162. or your spelling is wrong.
  163.  
  164. For a more permanent separate display of the definition, press the
  165. <Enter> key. A separate lookup window will appear. Hold down the
  166. <Option> key and drag in the lookup window's title bar to select the
  167. exact definition you want from a popup menu. Note that local
  168. variables are at present excluded, you'll have to Copy and Paste
  169. from the AutoLook window if you want a separate view of them.
  170. (Tip: for local variables, click after the type name for the variable
  171. in the AutoLook window, and press <Enter> to create a more
  172. permanent display of the definition in a separate lookup window.)
  173.  
  174. To look up the struct or class containing a particular member,
  175. again double-click on or click to the right of the name, and press
  176. <Shift><Enter>. A lookup window will appear, holding struct or
  177. class definitions that contain the member. There will often be
  178. several, so use the lookup window's popup menu as described just
  179. above to pick the one you want. The AutoLook window
  180. will usually display the definition you want as soon as you click
  181. to the right of the name, so this isn't much needed unless you
  182. want a separate display of the definition.
  183.  
  184. To use EnterAct as a lookup aid while working mainly with
  185. some other editor: have a relevant EnterAct project open,
  186. dictionary built, AutoLook open and frontmost; in the other
  187. editor, Copy the term you want looked up, and switch to
  188. EnterAct. If the definition does not immediately appear in
  189. the AutoLook window, press <Commmand><Enter>. If it was
  190. a member name and you want the full definitions of the containing
  191. structs or classes, press <Shift><Command><Enter>.
  192.  
  193. All lookup windows including AutoLook are fully editable but
  194. cannot be saved.
  195.  
  196. §    Browsing
  197. Select "Browse" from the EnterAct menu. Browse as in THINK C.
  198. Click and <Shift>click on and off of class names to show/hide
  199. multiple inheritance lines. (As mentioned, class browsing works
  200. with first-draft code.)
  201.  
  202. To view a particular class, type the first part or some distinctive
  203. part of its name. 
  204.  
  205. You can also use the Find dialog and the Find Again command to
  206. find classes in the browser window (eg if you're looking at the
  207. source for a class and want to see where the class is in the
  208. browser, use Enter Selection to enter the class name in the Find
  209. dialog, then bring the browser to the front and do a Find Again).
  210.  
  211. "User" class names are underlined, <system> class names are not.
  212.  
  213. If a class "uses" or "has" member classes, these will be listed
  214. below the main class name, separated from it by a white line.
  215. You can also double-click on these names to jump to their
  216. definitions, or click-and-hold to select one of their method
  217. names from a popup.
  218.  
  219. The multiple inheritance lines often aren't enough, so if you
  220. <Option> click on a class name you'll see a popup
  221. listing all of the classes from which it is derived. If you let
  222. go the mouse while over one of these base class names you'll
  223. jump to its definition.
  224.  
  225. If you <Command> click on a class name the resulting popup
  226. will show not only all methods in the class but all methods it
  227. inherits. Note if it's an ENORMOUS list of methods, it make take
  228. 5 seconds for the popup to show-please be patient the first
  229. few times you try this.
  230.  
  231. In all method popups, virtual methods are marked with a "v" so
  232. you can tell at a glance if a method wants or needs or has an
  233. override.
  234.  
  235. Summary of class popups:
  236.     • click on a class name: all methods defined by the class
  237.     • <Command> click: all inherited methods too
  238.     • <Option> click: the immediate parents of a class.
  239.  
  240.     Finding Definitions
  241. Single words: <Option>double-click.
  242.  
  243. Full method names (eg "TCircle::Draw") : select the full name
  244. and use "Find Definition". Or, <Option>double-click on one word,
  245. drag to the other, and release.
  246.  
  247. Just the method name (eg "Draw") :  normally the AutoLook
  248. window will show just the one you want, but even if it
  249. show several you can jump to it by <Option>double-clicking
  250. on the full method name in the AutoLook window.
  251.  
  252. If the AutoLook window doesn't show the one you want,
  253. press <Enter>; a lookup window appears holding full
  254. prototypes for all methods with that name; use the lookup
  255. window's popup menu to pick the one you want; then jump
  256. to it as described above for full method names.
  257.  
  258. More than one definition for a term: 
  259. press <Enter> to look the name up; use the popup menu in the
  260. lookup window to pick the definition you want (<Option> click
  261. in the window's title bar); and then use <Option>double-click on
  262. the name, or "Find Definition" without changing the default
  263. selection. The popup menu includes truncated full path names
  264. for the defining files, so you can tell which definition is which.
  265.  
  266. Static functions and variables: if you're in the file where it is
  267. defined, just <Option>double-click on the name. If you have
  268. several definitions of such a name and you aren't in the file where
  269. it is defined, use the approach for more than one definition described
  270. just above.
  271.  
  272. §    Multi-file search
  273. The Find dialog contains buttons to select all files of a particular
  274. type in the project window. Files selected for multi-file
  275. operations (including searching) have bullets (•) to their left in
  276. the project window. To "fine tune" your multi-file selection, hold
  277. down the <Option> key and click or drag right in the project
  278. window.
  279.  
  280. The "Batch" check box allows you to generate a list of all lines
  281. where the search string can be found in your multi-file selection
  282. (the "Find In Next File" button in the Find dialog changes to read
  283. "Batch Find"). To jump to the file and line indicated for one of the
  284. finds that's shown in the result window, click on the line and
  285. use "Go to...".
  286.  
  287. Multi-file selections have other uses, such as "Remove •'d files",
  288. input for several "Index" commands, and input for hAWK programs
  289. (see the «hAWK User’s Manual»).
  290.  
  291. Placing a dash '-' beside a project file name indicates that it
  292. should be excluded when building your dictionary, but it's often
  293. the case that you don't want to search those files either.
  294. In the Find dialog, the "Skip '-'" checkbox allows you to exclude
  295. files marked with a dash '-' in the project window when doing
  296. a multi-file operation such as searching.  Please note this
  297. checkbox affects all other buttons in the Find dialog, and all
  298. operations done with the file list. Specifically, the All and
  299. None buttons don't touch files marked with a dash '-' if the
  300. "Skip '-'" checkbox is checked, and such files aren't passed to
  301. a hAWK program, or looked at when you click "Find In Next File".
  302.  
  303. The "Dual Batch Find" button in the Find dialog calls up a separate
  304. (modal alas) dialog that lets you search for two search strings
  305. that occur within a certain number of lines or characters of each
  306. other. Clicking OK fires off a search of your bulleted files, with
  307. results of the search presented in a text window. "Zero" lines
  308. means on the same line, and a separation of zero characters means
  309. the two strings must occur together with no characters between
  310. (as in "Cmd" and "Handle" matching "CmdHandle" or "HandleCmd").
  311. Dual Batch Find obeys your "Match Words" and "Ignore Case"
  312. settings in the main Find dialog.
  313.  
  314. §    Accessing THINK Reference
  315. Beside EnterAct at the same level, have a folder entitled "Tools"
  316. or "(Tools)"; drop an alias of THINK Reference in this folder.
  317.  
  318. To look up THINK Ref's thoughts on a term, select it or click
  319. to the right of it and issue "Find in THINK Reference" (<cmd><->).
  320.  
  321. §    Accessing Toolbox Assistant
  322. As for THINK Ref, but drop an alias of "QuickView" in your
  323. Tools folder. The "Find in Toolbox Assistant" command is
  324. at the bottom of the Search menu (<cmd><4>).
  325.  
  326. §    Editing and Undo
  327. All basic editing commands are undoable, with a single level
  328. of undo. This includes Replace All.
  329.  
  330. You can drag and drop text in the usual way. You can also paste
  331. and delete PICTs to illustrate your documents -- search for
  332. "Illustrating your text" in the «EnterAct 3 Manual».
  333.  
  334. As you work, EnterAct logs all of your activities (including
  335. contents of edits) to the "EnterAct Recent Activities" file. In a
  336. pinch, you can recover the contents of a delete or remind yourself
  337. of what you just did by selecting "Show Activities..." from
  338. the Edit menu.
  339.  
  340. Well, not all of your activities, only the last ten thousand.
  341.  
  342. See «EnterAct 3 Manual» 4600 for a new and nicer way to cut
  343. and paste blocks of code. (To go there: add this file and the
  344. EnterAct 3 Manual to an EnterAct project, then click anywhere
  345. in the first line of this paragraph and use the "Go to" command,
  346. uner the Search menu).
  347.  
  348. §    Working with Code Warrior
  349. By default, when you open a document and Code Warrior also has
  350. the document open, EnterAct will force Code Warrior to close and
  351. save the file before opening it, asking you first of course before
  352. doing so. To turn this off, deselect the "Safe switching under
  353. MultiFinder" option in the Options... dialog (under the Edit menu).
  354. Having this option on also means that EnterAct will save all your
  355. documents when you switch out, and refresh them from disk
  356. when you switch back if they have been changed by some other
  357. application.
  358.  
  359. §    The Locations Menu
  360. Select "Add Current Location" to add a sort of "global marker" to
  361. the Locations menu for your current location. This is project
  362. independent, though note the position will not be maintained
  363. if you edit the corresponding source file with another editor.
  364. The text you have selected when you use the Add Current Locations
  365. command will be entered as the default name of the position in
  366. the dialog that subsequently appears: you can edit this name, or
  367. use no name at all and EnterAct will make up a name for you.
  368.  
  369. To remove a location from this menu:
  370.     • go to the location (typically by picking it from the Locations menu)
  371.     • select Delete Current Location from the Locations menu.
  372.  
  373. If the location does not exist any more, when you pick it from
  374. the Locations menu you will be told it can't be found, and asked if
  375. you want to delete it from the menu.
  376.  
  377. You can have up to 10 different locations under this menu.
  378.  
  379. §    Code Templates
  380. Great fun. All templates are stored in the text file "EnterAct
  381. Code Templates", which is very easy to modify (please take a look
  382. at it). Add this file to the folder where you keep EnterAct, at the
  383. same level.
  384.  
  385. To use a template, you type its name and press <command><return>.
  386. And <command><return> will also advance you to the next logical
  387. insertion point in your template (or in any code for that matter). If
  388. you save changes to your "EnterAct Code Templates" file using
  389. EnterAct, your new templates are instantly available (no need to
  390. quit and restart). Templates don't have to contain code, and
  391. template names can contain any non-blank characters, not just
  392. letters and numbers.
  393.  
  394. Each entry has the form
  395. ____
  396. ENTRY
  397. entry_name
  398. arbitrary text
  399.     making up the definition
  400. of the entry
  401. END
  402. ____
  403.  
  404. For the complete details on code templates, see the top of
  405. the "EnterAct Code Templates" file. If you'd like to try one
  406. now and you're using EnterAct, open a new window and type
  407. ____
  408. html<command><return>
  409. ____
  410.  
  411. Keep all your entries flush-left, and EnterAct will adjust your
  412. indentation when pasting your template in. Just open up a new line
  413. and tab in to the right position before typing the entry name and
  414. pressing <command><return>.
  415.  
  416. Tip: add "EnterAct Code Templates" to your "Locations" menu so you
  417. can change your templates on the fly.
  418.  
  419. -----------------
  420. Other useful things
  421. -----------------
  422. You can Balance a delimiter by double-clicking on it.
  423.  
  424. EnterAct comes equipped with hAWK, a version of AWK. It really
  425. is "three clicks and Run", with many supplied programs. See the
  426. «hAWK User’s Manual» for details. You can also fire off a hAWK
  427. program by using a command line, and you can save the command
  428. line as a "code template" in the "EnterAct Code Templates" file.
  429. If you'd like to try one now and have fully installed EnterAct,
  430. open up a new window and type the word "time", then hit
  431. <command><return> twice. The first <command><return> expands
  432. "time" into a hAWK command line, and the second <command><return>
  433. runs the corresponding hAWK program. Neat, eh?
  434.  
  435. EnterAct's <Enter>-driven lookup tolerates many kinds of spelling
  436. and (more importantly) memory errors. When in doubt, give it your
  437. best guess and press <Enter>. For extreme cases, use the "Options"
  438. dialog to increase the "Number of entries per lookup window" to 20.
  439. For emergency use only, use <Option><Enter> instead of plain <Enter>
  440. to fire up EnterAct's most error tolerant definition retriever - be
  441. prepared for some wild guesses mixed in there with the good ones!
  442.  
  443. To look up the last word on the clipboard, typically copied while in
  444. another application, press <Command><Enter>. Note if you have
  445. the AutoLook window open it will automatically show a definition
  446. for a word on the clipboard as you switch back to EnterAct.
  447.  
  448. "Go to..." is very general. It accepts line numbers, file names, marker
  449. names, and combinations such as file name/marker name, file
  450. name/line number. Handy for placing references in code files to
  451. supporting documentation. Moderately error tolerant, full correct
  452. spelling not required. To see it work, add the "EnterAct 3 Manual" to
  453. your project if you haven't done so, then click anywhere on the
  454. following line and "Go to":
  455. «EnterAct 3 Man» «17   “Go” cmds»
  456.  
  457. The European-style quotes «» are helpful in most "Go to" link names;
  458. to generate these painlessly, see
  459. «EnterAct 3 Man»  6438 (any individual mark)
  460. and
  461. «EnterAct 3 Man» 8151 (marks in documentation files especially)
  462.  
  463. To open an included file, click on the line in your source where it's
  464. included and use "Go to".
  465.  
  466. EnterAct projects accept PICT files.
  467.  
  468. Printing doesn't clip off long lines, it wraps them around.
  469.  
  470. EnterAct can be used as the THINK Project Managers's editor,
  471. as explained in either the THINK or EnterAct manuals.
  472.  
  473. When EnterAct can't locate a project file, and you have enabled
  474. the "Relocate files automatically" option,  it starts searching
  475. at the top of the disk where the file was last seen and
  476. searches down until it finds it (or not). Renaming or moving
  477. a folder does not affect EnterAct's memory of where a file is.
  478. Activating the "Relocate files automatically" option is NOT
  479. recommended, unless you're absolutely sure all your files
  480. have unique names.
  481.  
  482. If you have favorite AppleScripts to compile projects etc, drop
  483. them in the (EnterAct Scripts) folder for easy access.
  484. The scripts must be compiled scripts, not just text-only.
  485. They should do something simple and straightforward, and then
  486. quit, since you won't be able to continue working in EnterAct
  487. until the script finishes.
  488.  
  489. That's more than enough to get going. If you become inordinately
  490. fond of EnterAct's definition lookup capabilities, be sure to read
  491. through the full manual for details on the above features and a
  492. host of others.
  493.  
  494.